Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
48202ee0
Commit
48202ee0
authored
Dec 29, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Don't unescape '\v'.
parent
0dea1a65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
3 deletions
+24
-3
lex.c
dlls/jscript/lex.c
+0
-3
lang.js
dlls/jscript/tests/lang.js
+24
-0
No files found.
dlls/jscript/lex.c
View file @
48202ee0
...
...
@@ -266,9 +266,6 @@ static BOOL unescape(WCHAR *str)
case
'n'
:
c
=
'\n'
;
break
;
case
'v'
:
c
=
'\v'
;
break
;
case
'f'
:
c
=
'\f'
;
break
;
...
...
dlls/jscript/tests/lang.js
View file @
48202ee0
...
...
@@ -942,6 +942,30 @@ ok((Infinity != NaN) === true, "(Infinity != NaN) !== true");
ok
((
Infinity
!=
NaN
)
===
true
,
"(Infinity != NaN) !== true"
);
ok
((
0
==
NaN
)
===
false
,
"(0 === NaN) != false"
);
// escape tests
var
escapeTests
=
[
[
"
\
'"
,
"
\\
'"
,
39
],
[
"
\"
"
,
"
\\
\"
"
,
34
],
[
"
\
\"
, "
\\\\
", 92],
["
\
b
", "
\\
b
", 8],
["
\
t
", "
\\
t
", 9],
["
\
n
", "
\\
n
", 10],
["
\
v
", "
\\
v
", 118],
["
\
f
", "
\\
f
", 12],
["
\
r
", "
\\
r
", 13],
["
\
xf3
", "
\\
xf3
", 0xf3],
["
\
u1234
", "
\\
u1234
", 0x1234],
["
\
a
", "
\\
a
", 97],
["
\
?
", "
\\
?
", 63]
];
for(i=0; i<escapeTests.length; i++) {
tmp = escapeTests[i][0].charCodeAt(0);
ok(tmp === escapeTests[i][2], "
escaped
'" + escapeTests[i][1] + "'
=
" + tmp + "
expected
" + escapeTests[i][2]);
}
tmp = !+"
\
v1
";
ok(tmp === true, '!+"
\
v1
" = ' + tmp);
ok(typeof(testFunc2) === "
function
", "
typeof
(
testFunc2
)
=
" + typeof(testFunc2));
tmp = testFunc2(1);
...
...
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