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

Issue 27217: Yet more scrubbins. Navigator, Clipboard, Document, and Node. (Closed)

Created:
11 years, 10 months ago by dglazkov
Modified:
9 years, 6 months ago
Reviewers:
eseidel
CC:
chromium-reviews_googlegroups.com
Base URL:
svn://chrome-svn.corp.google.com/chrome/trunk/src/
Visibility:
Public.

Description

Yet more scrubbins. Navigator, Clipboard, Document, and Node. R=eseidel

Patch Set 1 #

Total comments: 21

Patch Set 2 : '' #

Total comments: 3

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+361 lines, -0 lines) Patch
A third_party/WebKit/WebCore/bindings/v8/custom/V8ClipboardCustom.cpp View 1 1 chunk +141 lines, -0 lines 0 comments Download
A third_party/WebKit/WebCore/bindings/v8/custom/V8DocumentCustom.cpp View 1 2 1 chunk +86 lines, -0 lines 0 comments Download
A third_party/WebKit/WebCore/bindings/v8/custom/V8NavigatorCustom.cpp View 1 1 chunk +48 lines, -0 lines 0 comments Download
A third_party/WebKit/WebCore/bindings/v8/custom/V8NodeCustom.cpp View 1 chunk +86 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
dglazkov
11 years, 10 months ago (2009-02-26 17:46:05 UTC) #1
eseidel
Yay scrubbing! it's not you man.. it's the code which makes me stabby. ;) Nice ...
11 years, 10 months ago (2009-02-26 18:59:57 UTC) #2
dglazkov
Thanks for reviewing -- here are the fixups. http://codereview.chromium.org/27217/diff/1/3 File third_party/WebKit/WebCore/bindings/v8/custom/V8ClipboardCustom.cpp (right): http://codereview.chromium.org/27217/diff/1/3#newcode70 Line 70: ...
11 years, 10 months ago (2009-02-26 22:15:42 UTC) #3
eseidel
Skimmed again for your enjoyment. http://codereview.chromium.org/27217/diff/12/1006 File third_party/WebKit/WebCore/bindings/v8/custom/V8ClipboardCustom.cpp (right): http://codereview.chromium.org/27217/diff/12/1006#newcode89 Line 89: return throwError("getData: Invalid ...
11 years, 10 months ago (2009-02-26 22:26:50 UTC) #4
dglazkov
11 years, 10 months ago (2009-02-26 22:34:29 UTC) #5
http://codereview.chromium.org/27217/diff/12/1006
File third_party/WebKit/WebCore/bindings/v8/custom/V8ClipboardCustom.cpp
(right):

http://codereview.chromium.org/27217/diff/12/1006#newcode89
Line 89: return throwError("getData: Invalid number of arguments",
V8Proxy::SYNTAX_ERROR);
On 2009/02/26 22:26:50, Eric Seidel (Google) wrote:
> syntax?  Maybe v8 views JS as a non-dynamic language?  I mean, I guess for
> predefined functions it makes sense to call arg count errors "syntax"?  Not
> sure.

So, basically this is how I understand it: number of arguments mismatch is a
syntax error. Incorrect argument type is a type error.

It's the same way in JSC:
http://trac.webkit.org/browser/trunk/WebCore/bindings/js/JSClipboardCustom.cpp

Powered by Google App Engine
This is Rietveld 408576698