projects
/
platform
/
upstream
/
js.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 1.0.0
[platform/upstream/js.git]
/
js
/
src
/
jit-test
/
tests
/
basic
/
bug630865-4.js
1
Object.defineProperty(Function.prototype, 'prototype',
2
{get: function () { if (i == HOTLOOP + 1) throw "X"; }});
3
var x;
4
try {
5
for (var i = 0; i < HOTLOOP + 2; i++)
6
x = new Function.prototype;
7
} catch (exc) {
8
assertEq(i, HOTLOOP + 1);
9
assertEq(exc, "X");
10
}