Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
49fd9032
Commit
49fd9032
authored
Jul 16, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Expose RegExpError constructor in global object.
parent
27747d3a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
global.c
dlls/jscript/global.c
+10
-0
api.js
dlls/jscript/tests/api.js
+1
-0
lang.js
dlls/jscript/tests/lang.js
+1
-1
No files found.
dlls/jscript/global.c
View file @
49fd9032
...
...
@@ -48,6 +48,7 @@ static const WCHAR NumberW[] = {'N','u','m','b','e','r',0};
static
const
WCHAR
ObjectW
[]
=
{
'O'
,
'b'
,
'j'
,
'e'
,
'c'
,
't'
,
0
};
static
const
WCHAR
StringW
[]
=
{
'S'
,
't'
,
'r'
,
'i'
,
'n'
,
'g'
,
0
};
static
const
WCHAR
RegExpW
[]
=
{
'R'
,
'e'
,
'g'
,
'E'
,
'x'
,
'p'
,
0
};
static
const
WCHAR
RegExpErrorW
[]
=
{
'R'
,
'e'
,
'g'
,
'E'
,
'x'
,
'p'
,
'E'
,
'r'
,
'r'
,
'o'
,
'r'
,
0
};
static
const
WCHAR
ActiveXObjectW
[]
=
{
'A'
,
'c'
,
't'
,
'i'
,
'v'
,
'e'
,
'X'
,
'O'
,
'b'
,
'j'
,
'e'
,
'c'
,
't'
,
0
};
static
const
WCHAR
VBArrayW
[]
=
{
'V'
,
'B'
,
'A'
,
'r'
,
'r'
,
'a'
,
'y'
,
0
};
static
const
WCHAR
EnumeratorW
[]
=
{
'E'
,
'n'
,
'u'
,
'm'
,
'e'
,
'r'
,
'a'
,
't'
,
'o'
,
'r'
,
0
};
...
...
@@ -172,6 +173,14 @@ static HRESULT JSGlobal_RangeError(script_ctx_t *ctx, vdisp_t *jsthis, WORD flag
return
constructor_call
(
ctx
->
range_error_constr
,
flags
,
argc
,
argv
,
retv
,
ei
);
}
static
HRESULT
JSGlobal_RegExpError
(
script_ctx_t
*
ctx
,
vdisp_t
*
jsthis
,
WORD
flags
,
unsigned
argc
,
VARIANT
*
argv
,
VARIANT
*
retv
,
jsexcept_t
*
ei
)
{
TRACE
(
"
\n
"
);
return
constructor_call
(
ctx
->
regexp_error_constr
,
flags
,
argc
,
argv
,
retv
,
ei
);
}
static
HRESULT
JSGlobal_ReferenceError
(
script_ctx_t
*
ctx
,
vdisp_t
*
jsthis
,
WORD
flags
,
unsigned
argc
,
VARIANT
*
argv
,
VARIANT
*
retv
,
jsexcept_t
*
ei
)
{
...
...
@@ -1155,6 +1164,7 @@ static const builtin_prop_t JSGlobal_props[] = {
{
RangeErrorW
,
JSGlobal_RangeError
,
PROPF_CONSTR
|
1
},
{
ReferenceErrorW
,
JSGlobal_ReferenceError
,
PROPF_CONSTR
|
1
},
{
RegExpW
,
JSGlobal_RegExp
,
PROPF_CONSTR
|
2
},
{
RegExpErrorW
,
JSGlobal_RegExpError
,
PROPF_CONSTR
|
1
},
{
ScriptEngineW
,
JSGlobal_ScriptEngine
,
PROPF_METHOD
},
{
ScriptEngineBuildVersionW
,
JSGlobal_ScriptEngineBuildVersion
,
PROPF_METHOD
},
{
ScriptEngineMajorVersionW
,
JSGlobal_ScriptEngineMajorVersion
,
PROPF_METHOD
},
...
...
dlls/jscript/tests/api.js
View file @
49fd9032
...
...
@@ -2545,6 +2545,7 @@ ok(Date.length == 7, "Date.length = " + Date.length);
ok
(
Enumerator
.
length
==
7
,
"Enumerator.length = "
+
Enumerator
.
length
);
ok
(
Error
.
length
==
1
,
"Error.length = "
+
Error
.
length
);
ok
(
EvalError
.
length
==
1
,
"EvalError.length = "
+
EvalError
.
length
);
ok
(
RegExpError
.
length
==
1
,
"RegExpError.length = "
+
RegExpError
.
length
);
ok
(
Function
.
length
==
1
,
"Function.length = "
+
Function
.
length
);
ok
(
GetObject
.
length
==
2
,
"GetObject.length = "
+
GetObject
.
length
);
ok
(
Number
.
length
==
1
,
"Number.length = "
+
Number
.
length
);
...
...
dlls/jscript/tests/lang.js
View file @
49fd9032
...
...
@@ -108,7 +108,7 @@ testConstructor(Error, "Error");
testConstructor
(
EvalError
,
"EvalError"
);
testConstructor
(
RangeError
,
"RangeError"
);
testConstructor
(
ReferenceError
,
"ReferenceError"
);
//
testConstructor(RegExpError, "RegExpError");
testConstructor
(
RegExpError
,
"RegExpError"
);
testConstructor
(
SyntaxError
,
"SyntaxError"
);
testConstructor
(
TypeError
,
"TypeError"
);
testConstructor
(
URIError
,
"URIError"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment