| Index: test/cctest/test-api.cc
|
| ===================================================================
|
| --- test/cctest/test-api.cc (revision 6580)
|
| +++ test/cctest/test-api.cc (working copy)
|
| @@ -2385,6 +2385,11 @@
|
| Local<ObjectTemplate> templ = ObjectTemplate::New();
|
| templ->Set(v8_str("fail"), v8::FunctionTemplate::New(Fail));
|
| LocalContext context(NULL, templ);
|
| + CompileRun("asdf;");
|
| + CompileRun("var limit = {};"
|
| + "limit.valueOf = fail;"
|
| + "Error.stackTraceLimit = limit;");
|
| + CompileRun("asdf");
|
| CompileRun("Array.prototype.pop = fail;");
|
| CompileRun("Object.prototype.hasOwnProperty = fail;");
|
| CompileRun("Object.prototype.toString = function f() { return 'Yikes'; }");
|
|
|