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

Issue 7067017: Change strict mode poison pill to be the samme type error function (fixes issue 1387). (Closed)

Created:
9 years, 7 months ago by Rico
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Change strict mode poison pill to be the samme type error function (fixes issue 1387). We are now following the spec, and with regards to the error message we are following firefox (webkit still has different type errors in their nightly) Committed: http://code.google.com/p/v8/source/detail?r=8026

Patch Set 1 #

Total comments: 11

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -66 lines) Patch
M src/bootstrapper.cc View 1 5 chunks +30 lines, -33 lines 0 comments Download
M src/builtins.h View 1 chunk +1 line, -5 lines 0 comments Download
M src/builtins.cc View 1 chunk +2 lines, -24 lines 0 comments Download
M src/messages.js View 1 chunk +1 line, -4 lines 0 comments Download
A test/mjsunit/regress/regress-1387.js View 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Rico
9 years, 7 months ago (2011-05-24 07:55:40 UTC) #1
Mads Ager (chromium)
Redirecting. Lasse, can you have a look?
9 years, 7 months ago (2011-05-24 07:57:44 UTC) #2
Lasse Reichstein
LGTM if the function isn't strict. http://codereview.chromium.org/7067017/diff/1/src/bootstrapper.cc File src/bootstrapper.cc (right): http://codereview.chromium.org/7067017/diff/1/src/bootstrapper.cc#newcode557 src/bootstrapper.cc:557: factory()->NewFunctionWithoutPrototype(name, kStrictMode); It's ...
9 years, 7 months ago (2011-05-24 09:44:10 UTC) #3
Rico
Comments addressed http://codereview.chromium.org/7067017/diff/1/src/bootstrapper.cc File src/bootstrapper.cc (right): http://codereview.chromium.org/7067017/diff/1/src/bootstrapper.cc#newcode557 src/bootstrapper.cc:557: factory()->NewFunctionWithoutPrototype(name, kStrictMode); On 2011/05/24 09:44:10, Lasse Reichstein ...
9 years, 7 months ago (2011-05-24 10:46:07 UTC) #4
Lasse Reichstein
9 years, 7 months ago (2011-05-24 11:00:19 UTC) #5
http://codereview.chromium.org/7067017/diff/1/src/bootstrapper.cc
File src/bootstrapper.cc (right):

http://codereview.chromium.org/7067017/diff/1/src/bootstrapper.cc#newcode557
src/bootstrapper.cc:557: factory()->NewFunctionWithoutPrototype(name,
kStrictMode);
That *sounds* incorrect. It should have the standard built-in Function prototype
as [[Prototype]], and it does when I check it in the current version:
  Object.GetOwnPropertyDescriptor(foo, "arguments").get.__proto__ ==
Function.prototype // => true.
where foo is a strict function.

(But I misread, it should have a .prototype property).

I.e., I think it's correct.

Powered by Google App Engine
This is Rietveld 408576698