Commit graph

485 commits

Author SHA1 Message Date
Seonghyun Kim
cce7902efb Update test262 driver for testing hashbang test & exclude file
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-04-26 11:53:13 +09:00
Seonghyun Kim
0711d88306 Revise script parser
* Enable for await statement for Global Module code
* Disable html comment when parsing module code

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-04-16 09:58:15 +09:00
Seonghyun Kim
025607bddc Implement Dynamic Import resolution, rejection
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-04-15 10:58:10 +09:00
Seonghyun Kim
1a51cff06d Implement module import rejection
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-04-15 10:58:10 +09:00
Seonghyun Kim
4cd0da1e07 Implement await dynamic import resolution
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-04-15 10:58:10 +09:00
Seonghyun Kim
5213b1fe11 Implement executeAsyncModule spec
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-04-12 10:17:09 +09:00
HyukWoo Park
27ed2989e1 Handle cases when binding object of with statement has @@unscopables property
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-04-07 19:26:47 +09:00
HyukWoo Park
8a1100c18e Update syntax error check for let array expression
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-04-07 19:26:47 +09:00
HyukWoo Park
f540c36edb Add syntax error about declarations for if statement
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-04-07 12:06:39 +09:00
HyukWoo Park
6610ae4825 Throw SyntaxError when function or class declaration is not located correctly
* throw error if function or class declaration is not located at the top level or inside a block

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-04-05 12:47:00 +09:00
HyukWoo Park
71bf5f6c89 Fix a bug in FinalizationRegistry.prototype.cleanupSome
* add check if callback is present and not undefined

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-04-05 12:47:00 +09:00
HyukWoo Park
5517dbf80a Remove unused variables and functions
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-03-29 09:30:06 +09:00
HyukWoo Park
b3f9c43c17 Update wabt module
* update wabt release version to 1.0.21
* add wasm-gc interface

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-03-15 15:25:04 +09:00
Bence Gabor Kis
01541b923f Update TypeArray Detachbuffer
related test262 test-cases has been removed from the skip list

Signed-off-by: bence gabor kis <kisbg@inf.u-szeged.hu>
2021-03-08 16:13:44 +09:00
Bence Gabor Kis
15694a017c Update promise to the latest standard
Signed-off-by: bence gabor kis <kisbg@inf.u-szeged.hu>
2021-03-04 14:45:44 +09:00
Seonghyun Kim
b387087dab test module condition in ExecutionState::inPauserScope
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-03-02 12:40:44 +09:00
Seonghyun Kim
40ebd4f837 await identifier is illegal expression on async function parameter
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-03-02 12:40:44 +09:00
bence gabor kis
160cb37300 Update name and length property order
also fixed few test262 test-case

Signed-off-by: bence gabor kis <kisbg@inf.u-szeged.hu>
2021-02-22 12:17:24 +09:00
Seonghyun Kim
161f516c54 Implement basic things of top level await
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-02-18 14:52:23 +09:00
HyukWoo Park
511d19d266 Fix test262 driver to correctly count the total test number
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-02-17 11:54:22 +09:00
Bence Gabor Kis
560f1f233d Implement Legacy RegExp features
Signed-off-by: bence gabor kis <kisbg@inf.u-szeged.hu>
2021-02-16 11:59:09 +09:00
Seonghyun Kim
a2d2bf01b8 Implement FinalizationRegistry.prototype.cleanupSome
* FinalizationRegistry should have weak reference of Object

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-02-09 17:47:27 +09:00
HyukWoo Park
cbc4723a26 Update test262 TC
* test262 main branch (commit id: fd27d1f5d00dcccc5f763252fc11b575ee0bdd2f)

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-02-08 18:40:51 +09:00
Seonghyun Kim
b791bd9850 Disallow using arguments variable in class field when using eval function
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-02-02 10:21:45 +09:00
Seonghyun Kim
109d199302 Reimplement static field initializer
* wrap initializer expr into virtual arrow function like instance field
* users can access super property in eval

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-02-02 10:21:45 +09:00
HyukWoo Park
28fad835a2 Fix build errors in github actions
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-02-01 11:29:19 +09:00
Seonghyun Kim
d088f0416e class should define name before define prototype
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-01-28 14:37:35 +09:00
Seonghyun Kim
cdf986151b class should define its name first
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-01-28 14:37:35 +09:00
Seonghyun Kim
7047a7e0f7 class should evalutate field names first
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-01-28 14:37:35 +09:00
Bence Gabor Kis
92d8cedd45 Update Regexp prototype @@replace to newest standart
related test-cases has been removed from test262 skip list

Signed-off-by: bence gabor kis <kisbg@inf.u-szeged.hu>
2021-01-27 11:35:33 +09:00
bence gabor kis
572a7eb3a2 Implement FinalizationRegistry object
https://tc39.es/proposal-weakrefs/#sec-weak-ref-objects

removed most of the related test-cases in test262 skiplist

The few remaning test-cases are base on FinalizationRegistry.prototype.cleanupSome, which i didn't find any documentation on.

Signed-off-by: bence gabor kis <kisbg@inf.u-szeged.hu>
2021-01-26 12:02:22 +09:00
Seonghyun Kim
5f75330bab Check computed name correctly in class static field
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-01-26 10:14:22 +09:00
Seonghyun Kim
2dee70d5ff Implement super expression for class field
* Add toPropertyKey call for property key name

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-01-26 10:14:22 +09:00
Bela Toth
ee5d4d5006 Add Unicode pattern table generator
The script uses WebKit algorithm to generate new tables
directly from the UCD files.

Signed-off-by: Bela Toth tbela@inf.u-szeged.hu
2021-01-25 16:23:07 +09:00
HyukWoo Park
b6499d8564 Fix memory leak in WASM
* add wasm_extern_vec_delete_with_size api to handle exception cases during the imports reading
* wasm_extern_vec_t is now correctly deallocated

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-01-22 11:46:09 +09:00
Seonghyun Kim
dac08ab369 Implement runtime things of class field
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-01-21 18:22:20 +09:00
HyukWoo Park
ff70851d7a Update WebAssembly.instantiate
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-01-20 15:04:17 +09:00
HyukWoo Park
c5f310ee8c Update ExportedFunction name property
* get a function index from instance object which needs to be revised later

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-01-19 15:15:01 +09:00
Bela Toth
b2e862a4f7 Upgrade ICU tables to enable RegExp property escape tests
Removed passing tests from exclude list

Signed-off-by: Bela Toth tbela@inf.u-szeged.hu
2021-01-18 15:01:25 +09:00
bence gabor kis
ccd0ec704c Implement WeakRef Object
related test262 test-cases has been removed from the skip list

Except two test since it needs FinalizationRegistry feature

Signed-off-by: bence gabor kis <kisbg@inf.u-szeged.hu>
2021-01-18 14:53:54 +09:00
HyukWoo Park
6f3d58c75d Update wabt module
* fetch the lastest commit which includes importtypes patch
* add wasm_instance_func_index api for function name

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-01-15 11:40:23 +09:00
HyukWoo Park
e93df95534 Add partial-passing memory TC
* shared buffer is not yet supported

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-01-13 17:07:32 +09:00
HyukWoo Park
06270219e1 Fix WebAssembly object caching based on wasm_ref_t comparison
* each extern pointer(wasm_ref_t*) should be compared by wasm_ref_same
* Vector structure is used instead of HashMap since we cannot calculate hashvalue of wasm_ref_t

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-01-12 11:46:00 +09:00
bence gabor kis
70fae23a9f Implement String.prototype.replaceAll builtin method
related test262 test-cases has been removed from the skip list

Signed-off-by: bence gabor kis <kisbg@inf.u-szeged.hu>
2021-01-12 10:57:20 +09:00
Seonghyun Kim
19823a483b Add this support for eval in class static field init
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-01-05 15:17:14 +09:00
Seonghyun Kim
58af1ce82c Implement class static field this value of arrow function in field init
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-01-05 15:17:14 +09:00
Seonghyun Kim
658834dbe5 Implement basic this keyword operation of static class field
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-01-05 15:17:14 +09:00
Seonghyun Kim
4f122f2900 Implement basic operation of static class field
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-01-05 15:17:14 +09:00
HyukWoo Park
8453433fea Update getting proto handler for each WebAssembly constructor
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-01-05 14:42:42 +09:00
HyukWoo Park
e4eca708d4 Append missing constructor property for each WebAssembly constructor's prototype
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-01-04 11:04:16 +09:00