Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Issue 194403002: PromiseCoerce should ignore primitive values. (Closed)

Created:
6 years, 9 months ago by yhirano
Modified:
6 years, 9 months ago
Reviewers:
rossberg
CC:
v8-dev
Base URL:
git://github.com/v8/v8.git@master
Visibility:
Public.

Description

PromiseCoerce should ignore primitive values. PromiseCource(x) should return "not a thenable" if Type(x) is not Object even if x.then exists. BUG=347095 LOG=Y R=rossberg@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=19788

Patch Set 1 #

Patch Set 2 : Replacing (typeof x === 'object') with IS_SPEC_OBJECT(x). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/promise.js View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
yhirano
This is needed to pass the Promise/A+ Compliance Test Suite.
6 years, 9 months ago (2014-03-11 06:44:21 UTC) #1
yhirano
Sorry, PS1 is wrong. PS2 Uses IS_SPEC_OBJECT(x) which means "Type(x) is Object".
6 years, 9 months ago (2014-03-11 07:25:26 UTC) #2
rossberg
lgtm
6 years, 9 months ago (2014-03-11 10:20:40 UTC) #3
rossberg
6 years, 9 months ago (2014-03-11 10:41:24 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r19788.

Powered by Google App Engine
This is Rietveld 408576698