Skip to content

Add support for new.target#3469

Merged
rerobika merged 1 commit intojerryscript-project:masterfrom
galpeter:nwtrgt
Jan 14, 2020
Merged

Add support for new.target#3469
rerobika merged 1 commit intojerryscript-project:masterfrom
galpeter:nwtrgt

Conversation

@galpeter
Copy link
Copy Markdown
Contributor

@galpeter galpeter commented Dec 19, 2019

Notable changes:

  • Extracted the pure JS/builtin and external C method invocations
    into two new methods (ecma_op_function_call_{simple, external}).
  • Updated parser/scanner to handle "new.target" correctly.
  • Added JS test case.

@galpeter galpeter added parser Related to the JavaScript parser ecma core Related to core ECMA functionality api Related to the public API ES2015 Related to ES2015 features labels Dec 19, 2019
Comment thread jerry-core/parser/js/js-scanner-util.c Outdated
@galpeter galpeter removed the api Related to the public API label Jan 7, 2020
@galpeter
Copy link
Copy Markdown
Contributor Author

galpeter commented Jan 7, 2020

I'll do another update with corrected error messages (currently only one is used).

Comment thread jerry-core/parser/js/js-parser-expr.c Outdated
Comment thread tests/jerry/es2015/new-target.js
Comment thread jerry-core/vm/vm.c
@galpeter galpeter force-pushed the nwtrgt branch 2 times, most recently from 731cd78 to 1f8e677 Compare January 9, 2020 13:59
Comment thread jerry-core/parser/js/js-parser-expr.c Outdated
Comment thread jerry-core/parser/js/js-parser-expr.c Outdated
@galpeter galpeter force-pushed the nwtrgt branch 2 times, most recently from 3b23af8 to d7b5d12 Compare January 10, 2020 15:56
Comment thread jerry-core/ecma/operations/ecma-function-object.c Outdated
Comment thread jerry-core/ecma/operations/ecma-function-object.c Outdated
Comment thread jerry-core/parser/js/js-parser-statm.c Outdated
Comment thread jerry-core/parser/js/js-scanner-util.c Outdated
Copy link
Copy Markdown
Member

@rerobika rerobika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Member

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only a few minor changes.

Comment thread jerry-core/parser/js/js-parser-expr.c Outdated
Comment thread jerry-core/parser/js/js-parser-expr.c Outdated
Notable changes:
* Extracted the pure JS/builtin and external C method invocations
  into two new methods (`ecma_op_function_call_{simple, external}`).
* Updated parser/scanner to handle "new.target" correctly.
* Added JS test case.

JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
@galpeter
Copy link
Copy Markdown
Contributor Author

@zherczeg thanks I'v updated the PR.

Copy link
Copy Markdown
Member

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rerobika rerobika merged commit 0fd1ed6 into jerryscript-project:master Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ecma core Related to core ECMA functionality ES2015 Related to ES2015 features parser Related to the JavaScript parser

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants