Backed out changeset 6d172e86ce2e (bug 1022002) for tipping Android 2.3 reftest-6 runtimes over the max time limit

This commit is contained in:
Ed Morley 2014-06-10 15:08:49 +01:00
parent e515e04cb3
commit 62dc0bf17c
2 changed files with 2 additions and 8 deletions

View File

@ -3531,7 +3531,7 @@ CloneIntoReadStructuredClone(JSContext *cx,
if (!JS_WrapObject(cx, &obj))
return nullptr;
if (!xpc::NewFunctionForwarder(cx, obj, true, &functionValue))
if (!xpc::NewFunctionForwarder(cx, obj, false, &functionValue))
return nullptr;
return &functionValue.toObject();

View File

@ -161,14 +161,8 @@
'CloneInto should only work on less privileged target scopes.');
}
var test = { a: function() { return 42; } };
var test = { a: function() { return 42; } }
cloneAndTestWithFunctions(test);
// Check that we're cloning input to functions:
test = { a: function(obj) { return obj; } };
var clonedTest = Cu.cloneInto(test, sandbox, {cloneFunctions: true});
var testInput = {};
isnot(clonedTest.a(testInput), testInput, "Objects should not be identical");
]]>
</script>
</window>