From d37c74c89628208a86460e0b44e49233dbfc719e Mon Sep 17 00:00:00 2001 From: Gary Kwong Date: Wed, 28 Aug 2013 16:03:18 -0700 Subject: [PATCH] Bug 909447 - Test. r=bholley DONTBUILD --- .../jit-test/tests/auto-regress/bug909447.js | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 js/src/jit-test/tests/auto-regress/bug909447.js diff --git a/js/src/jit-test/tests/auto-regress/bug909447.js b/js/src/jit-test/tests/auto-regress/bug909447.js new file mode 100644 index 000000000000..30d31aaef1a0 --- /dev/null +++ b/js/src/jit-test/tests/auto-regress/bug909447.js @@ -0,0 +1,21 @@ +// |jit-test| error:InternalError + +function f(code) { + try { + g = Function(code) + } catch (e) {} + g() +} +f("\ + Object.defineProperty(this,\"x\",{\ + get: function(){\ + evaluate(\"Array(x)\",{\ + newContext:true,\ + catchTermination:(function(){})\ + })\ + }\ + })\ +"); +f("x"); +f(")"); +f("x");