Paul Gofman
308c8468b4
jscript: Support block scope variables.
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-18 16:49:41 +02:00
Paul Gofman
b356962997
jscript: Parse 'let' and 'const' variable declarations.
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-16 23:23:49 +02:00
Jacek Caban
f568b48e66
jscript: Get dispid and call invoke in a single step when setting a member property.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-01 18:29:48 +02:00
Gabriel Ivăncescu
0ae1669ec2
jscript/tests: Add more tests for setting prototype to different builtin types.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-11 22:58:26 +01:00
Gabriel Ivăncescu
ba1f47a770
jscript: Use default object prototype if it's null.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-11 22:58:26 +01:00
Gabriel Ivăncescu
580413032c
jscript: Check for null instance prototype.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-10 21:31:33 +01:00
Jacek Caban
d22bafa763
jscript: Add VT_CY type support.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-22 20:34:57 +01:00
Jacek Caban
7e4f254bbd
jscript: Support VARIANT type in jsval_strict_equal.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-19 21:44:17 +01:00
Jacek Caban
42c044ae71
jscript: Support VT_DATE to string conversion.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-19 21:44:17 +01:00
Jacek Caban
3fb0e893b1
jscript: Support VT_DATE to number conversion.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-19 21:44:17 +01:00
Jacek Caban
859783e83b
jscript/tests: Add VT_DATE handling tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-19 21:44:17 +01:00
Jacek Caban
f6c5da47f7
jscript: Suport generic error object for exception with no associated JavaScript exception value.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-02 16:24:51 +01:00
Francois Gouget
a4a1ba5a22
jscript/tests: Fix the spelling and slightly reword an ok() message.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-23 19:44:17 +02:00
Jacek Caban
922049a21d
jscript: Add support for string literals with embedded null bytes.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-04 13:09:22 +01:00
Jacek Caban
56be97fd5d
jscript: Add parser support for getters and setters in object initializer.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-03 10:50:24 +01:00
Jacek Caban
4cabe3612f
jscript: Allow trailing comma in object literals.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-16 22:26:07 +02:00
Jacek Caban
5a90acf59c
jscript: Use global accumulator for storing function call results.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-12 14:08:07 +02:00
Jacek Caban
4fde6d4138
jscript: Properly parse large hexadecimal listerals.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-11 20:14:43 +02:00
Jacek Caban
f96aa1f32c
jscript: Properly support overloaded values in to_int32.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-11 20:14:41 +02:00
Jacek Caban
d72acebd6c
jscript: Properly handle elisions in array literals.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-02 10:54:27 +01:00
Jacek Caban
4b5291a519
jscript/tests: Added more exception tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-01 19:29:15 +02:00
Jacek Caban
b7bb16673c
jscript: Simplify pop_to_stat implementation.
...
We no longer need to do stack pops before return expression evaluation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-01 19:29:15 +02:00
Jacek Caban
afc63fd570
jscript/tests: Added more tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-05 10:32:40 -05:00
Jacek Caban
1857cdf57d
jscript: More arguments object tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-03 11:13:50 -05:00
Jacek Caban
a8b5dc84bd
jscript: Removed obsolete FIXME comments in tests and add relevant tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-25 22:05:24 +09:00
Jacek Caban
e1970c8547
jscript: Properly handle function expressions with identifiers.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-06 21:09:04 +09:00
Piotr Caban
756c604d9a
jscript: Fix handling of numbers starting with decimal separator.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 00:54:12 +09:00
Jacek Caban
35133dbe58
jscript: Find Function.arguments on the stack instead of storing it in FunctionInstance object.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-29 10:40:06 +09:00
Jacek Caban
47cf3fe36d
jscript: Added a few more arguments tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-25 00:52:09 +09:00
Jacek Caban
b7a27333e3
jscript: Don't use builtin property for a few more constructors.
2015-02-06 00:28:34 +09:00
Jacek Caban
6eb49669aa
jscript: Don't use builtin property for exposing Boolean constructor.
2015-02-05 00:23:14 +09:00
Jacek Caban
0eec97e29b
jscript: Don't use builtin property for exposing ActiveXObject constructor.
2014-10-13 19:43:28 +09:00
Jacek Caban
4d9ea4b563
jscript: Added support for octal literals.
2013-11-06 18:01:00 +01:00
Jacek Caban
4dbd777de2
jscript: Fixed deleting nonexistent identifiers.
2012-12-17 20:31:17 +01:00
Jacek Caban
7f07bb9a7a
jscript: Fixed deleting nonexisting properties from member expression.
2012-12-17 20:31:16 +01:00
Jacek Caban
10c2a2bba4
jscript: Properly handle return value evaluation in comma expression.
2012-12-14 11:54:44 +01:00
Jacek Caban
162f2e6be2
jscript: Moved eval return value logic to specific statement handlers.
2012-12-13 12:24:07 +01:00
Jacek Caban
0e5933f70a
jscript: Added support for indexed string access.
2012-11-30 19:12:16 +01:00
Jacek Caban
d9d8c8b716
jscript: Added support for DontDelete attribute and use it for arguments object.
2012-11-30 19:12:15 +01:00
Jacek Caban
6b56c65f8d
jscript: Alias arguments properties to real values.
2012-11-30 19:12:14 +01:00
Jacek Caban
55f0663e3e
jscript: Use proper object as 'this' when function is called on an activation object.
2012-11-14 16:37:49 +01:00
Jacek Caban
fdbd536983
jscript: Don't leave current scope in return statement before evaluating the expression.
2012-09-13 16:47:22 +02:00
Jacek Caban
dd0fe98646
jscript: Added support for no new line between return and expression rule.
2012-09-10 17:36:08 +02:00
Jacek Caban
f1642ce1fc
jscript: Added support for no new line between continue and identifier rule.
2012-09-10 17:36:05 +02:00
Jacek Caban
dc2133cc66
jscript: Added support for no new line between break and identifier rule.
2012-09-10 17:36:02 +02:00
Jacek Caban
6ba7a1964a
jscript: Fixed empty cases in the end of switch statement.
2012-09-04 16:15:45 +02:00
Jacek Caban
d0aa78c096
jscript: Don't set constructor property to each object instance, it belongs to their prototypes.
2012-07-16 16:29:57 +02:00
Jacek Caban
49fd903205
jscript: Expose RegExpError constructor in global object.
2012-07-16 16:29:51 +02:00
Jacek Caban
27747d3a75
jscript: Properly set Error object's constructor property.
2012-07-16 16:29:45 +02:00
Jacek Caban
bf7b7272ee
jscript: Properly set Function constructor's constructor property.
2012-07-16 16:29:38 +02:00