Commit 0719c599 authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

Missing file from last change. TBR=kasperl

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1884 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 374dea34
...@@ -54,6 +54,16 @@ function InstallFunctions(object, attributes, functions) { ...@@ -54,6 +54,16 @@ function InstallFunctions(object, attributes, functions) {
} }
} }
// Emulates JSC by installing functions on a hidden prototype that
// lies above the current object/prototype. This lets you override
// functions on String.prototype etc. and then restore the old function
// with delete. See http://code.google.com/p/chromium/issues/detail?id=1717
function InstallFunctionsOnHiddenPrototype(object, attributes, functions) {
var hidden_prototype = new $Object();
%SetHiddenPrototype(object, hidden_prototype);
InstallFunctions(hidden_prototype, attributes, functions);
}
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment