WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
92168
[V8] Correct WebIDL type should be used in the testing IDL file
https://bugs.webkit.org/show_bug.cgi?id=92168
Summary
[V8] Correct WebIDL type should be used in the testing IDL file
Jian Li
Reported
2012-07-24 15:19:07 PDT
The V8int used in the bindings code is incorrect.
> Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp:1740 > + EXCEPTION_BLOCK(int, intArg, V8int::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined)) ? V8int::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined))) : 0);
Attachments
Proposed Patch
(9.05 KB, patch)
2012-07-24 15:42 PDT
,
Jian Li
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Adam Barth
Comment 1
2012-07-24 15:26:34 PDT
V8int isn't the problem. The problem is that you're using "int" in the IDL file, which is wrong. The correct type for integers in IDL is long.
Jian Li
Comment 2
2012-07-24 15:42:11 PDT
Created
attachment 154159
[details]
Proposed Patch
Kentaro Hara
Comment 3
2012-07-24 16:25:48 PDT
Comment on
attachment 154159
[details]
Proposed Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=154159&action=review
> Source/WebCore/bindings/scripts/test/TestObj.idl:193 > + [V8EnabledAtRuntime=FeatureName] void enabledAtRuntimeMethod2(in long intArg);
Let's rename to longArg.
> Source/WebCore/bindings/scripts/test/TestObj.idl:198 > + [V8EnabledPerContext] void enabledPerContextMethod1(in long intArg); > + [V8EnabledPerContext=FeatureName] void enabledPerContextMethod2(in long intArg);
Ditto.
Jian Li
Comment 4
2012-07-24 16:52:04 PDT
Committed as
http://trac.webkit.org/changeset/123550
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug