Commit 95908dbb authored by rossberg@chromium.org's avatar rossberg@chromium.org

Promise constructor should not be enumerable.

Promise should not be enumerable in the global object.

BUG=352597
R=rossberg@chromium.org
LOG=Y

Review URL: https://codereview.chromium.org/211943004

Patch from Yutaka Hirano <yhirano@chromium.org>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20268 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent f921ef39
......@@ -306,9 +306,8 @@ function PromiseOne(values) {
//-------------------------------------------------------------------
function SetUpPromise() {
%CheckIsBootstrapping()
var global_receiver = %GlobalReceiver(global);
global_receiver.Promise = $Promise;
%CheckIsBootstrapping();
%SetProperty(global, 'Promise', $Promise, DONT_ENUM);
InstallFunctions($Promise, DONT_ENUM, [
"defer", PromiseDeferred,
"accept", PromiseResolved,
......
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