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
2538a74c
Commit
2538a74c
authored
May 10, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
May 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Make RegExp object properties non-writable.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7f01473a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
32 deletions
+12
-32
jsregexp.c
dlls/jscript/jsregexp.c
+8
-32
es5.js
dlls/mshtml/tests/es5.js
+4
-0
No files found.
dlls/jscript/jsregexp.c
View file @
2538a74c
...
...
@@ -256,12 +256,6 @@ static HRESULT RegExp_get_source(script_ctx_t *ctx, jsdisp_t *jsthis, jsval_t *r
return
S_OK
;
}
static
HRESULT
RegExp_set_source
(
script_ctx_t
*
ctx
,
jsdisp_t
*
jsthis
,
jsval_t
value
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
RegExp_get_global
(
script_ctx_t
*
ctx
,
jsdisp_t
*
jsthis
,
jsval_t
*
r
)
{
TRACE
(
"
\n
"
);
...
...
@@ -270,12 +264,6 @@ static HRESULT RegExp_get_global(script_ctx_t *ctx, jsdisp_t *jsthis, jsval_t *r
return
S_OK
;
}
static
HRESULT
RegExp_set_global
(
script_ctx_t
*
ctx
,
jsdisp_t
*
jsthis
,
jsval_t
value
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
RegExp_get_ignoreCase
(
script_ctx_t
*
ctx
,
jsdisp_t
*
jsthis
,
jsval_t
*
r
)
{
TRACE
(
"
\n
"
);
...
...
@@ -284,12 +272,6 @@ static HRESULT RegExp_get_ignoreCase(script_ctx_t *ctx, jsdisp_t *jsthis, jsval_
return
S_OK
;
}
static
HRESULT
RegExp_set_ignoreCase
(
script_ctx_t
*
ctx
,
jsdisp_t
*
jsthis
,
jsval_t
value
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
RegExp_get_multiline
(
script_ctx_t
*
ctx
,
jsdisp_t
*
jsthis
,
jsval_t
*
r
)
{
TRACE
(
"
\n
"
);
...
...
@@ -298,12 +280,6 @@ static HRESULT RegExp_get_multiline(script_ctx_t *ctx, jsdisp_t *jsthis, jsval_t
return
S_OK
;
}
static
HRESULT
RegExp_set_multiline
(
script_ctx_t
*
ctx
,
jsdisp_t
*
jsthis
,
jsval_t
value
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
INT
index_from_val
(
script_ctx_t
*
ctx
,
jsval_t
v
)
{
double
n
;
...
...
@@ -607,11 +583,11 @@ static void RegExp_destructor(jsdisp_t *dispex)
static
const
builtin_prop_t
RegExp_props
[]
=
{
{
execW
,
RegExp_exec
,
PROPF_METHOD
|
1
},
{
globalW
,
NULL
,
0
,
RegExp_get_global
,
RegExp_set_global
},
{
ignoreCaseW
,
NULL
,
0
,
RegExp_get_ignoreCase
,
RegExp_set_ignoreCase
},
{
globalW
,
NULL
,
0
,
RegExp_get_global
},
{
ignoreCaseW
,
NULL
,
0
,
RegExp_get_ignoreCase
},
{
lastIndexW
,
NULL
,
0
,
RegExp_get_lastIndex
,
RegExp_set_lastIndex
},
{
multilineW
,
NULL
,
0
,
RegExp_get_multiline
,
RegExp_set_multiline
},
{
sourceW
,
NULL
,
0
,
RegExp_get_source
,
RegExp_set_source
},
{
multilineW
,
NULL
,
0
,
RegExp_get_multiline
},
{
sourceW
,
NULL
,
0
,
RegExp_get_source
},
{
testW
,
RegExp_test
,
PROPF_METHOD
|
1
},
{
toStringW
,
RegExp_toString
,
PROPF_METHOD
}
};
...
...
@@ -626,11 +602,11 @@ static const builtin_info_t RegExp_info = {
};
static
const
builtin_prop_t
RegExpInst_props
[]
=
{
{
globalW
,
NULL
,
0
,
RegExp_get_global
,
RegExp_set_global
},
{
ignoreCaseW
,
NULL
,
0
,
RegExp_get_ignoreCase
,
RegExp_set_ignoreCase
},
{
globalW
,
NULL
,
0
,
RegExp_get_global
},
{
ignoreCaseW
,
NULL
,
0
,
RegExp_get_ignoreCase
},
{
lastIndexW
,
NULL
,
0
,
RegExp_get_lastIndex
,
RegExp_set_lastIndex
},
{
multilineW
,
NULL
,
0
,
RegExp_get_multiline
,
RegExp_set_multiline
},
{
sourceW
,
NULL
,
0
,
RegExp_get_source
,
RegExp_set_source
}
{
multilineW
,
NULL
,
0
,
RegExp_get_multiline
},
{
sourceW
,
NULL
,
0
,
RegExp_get_source
}
};
static
const
builtin_info_t
RegExpInst_info
=
{
...
...
dlls/mshtml/tests/es5.js
View file @
2538a74c
...
...
@@ -179,7 +179,11 @@ function test_getOwnPropertyDescriptor() {
test_own_data_prop_desc
(
obj
,
"arguments"
,
false
,
false
,
false
);
obj
=
/test/
;
test_own_data_prop_desc
(
obj
,
"global"
,
false
,
false
,
false
);
test_own_data_prop_desc
(
obj
,
"ignoreCase"
,
false
,
false
,
false
);
test_own_data_prop_desc
(
obj
,
"lastIndex"
,
true
,
false
,
false
);
test_own_data_prop_desc
(
obj
,
"multiline"
,
false
,
false
,
false
);
test_own_data_prop_desc
(
obj
,
"source"
,
false
,
false
,
false
);
next_test
();
}
...
...
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