js/src/jit-test/tests/basic/bug729364.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/basic/bug729364.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +function f() {
     1.5 +  try {} catch (e) {}
     1.6 +}
     1.7 +function g(code) {
     1.8 +  function m() {
     1.9 +    return "(function(){return " + code + "})()"
    1.10 +  }
    1.11 +  var codeNestedDeep = m(codeNestedDeep)
    1.12 +  h(m(code), "same-compartment")
    1.13 +  h(codeNestedDeep, "same-compartment")
    1.14 +}
    1.15 +function h(code, globalType) {
    1.16 +  try {
    1.17 +    evalcx(code, newGlobal(globalType))
    1.18 +  } catch (e) {
    1.19 +    "" + f()
    1.20 +  }
    1.21 +}
    1.22 +function p()(function() function() {})
    1.23 +g("print(let(x=verifyprebarriers(),q)((x(\"\",l('')))?(\"\"):(\"\")))()")

mercurial