Commit 3b3ede5d authored by bmeurer's avatar bmeurer Committed by Commit bot

[promises] Move promise constants to macros.py.

This should recover part of the Bluebird regression caused by
sending let/const to TurboFan+Ignition.

R=gsathya@chromium.org

Review-Url: https://codereview.chromium.org/2552583002
Cr-Commit-Position: refs/heads/master@{#41467}
parent ae90b7f0
......@@ -197,3 +197,12 @@ define kArrayInstanceConstructorModified = 28;
define kLegacyFunctionDeclaration = 29;
define kRegExpPrototypeSourceGetter = 30;
define kRegExpPrototypeOldFlagGetter = 31;
# [[PromiseState]] values:
# These values should be kept in sync with PromiseStatus in globals.h
define kPending = 0;
define kFulfilled = 1;
define kRejected = 2;
define kResolveCallback = 0;
define kRejectCallback = 1;
......@@ -44,15 +44,6 @@ utils.Import(function(from) {
// -------------------------------------------------------------------
// [[PromiseState]] values:
// These values should be kept in sync with PromiseStatus in globals.h
const kPending = 0;
const kFulfilled = +1;
const kRejected = +2;
const kResolveCallback = 0;
const kRejectCallback = 1;
// Core functionality.
function PromiseSet(promise, status, value) {
......
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