Bug 160693 - [ES7] Use exponentiation expression in ES6SampleBench
Summary: [ES7] Use exponentiation expression in ES6SampleBench
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-09 09:16 PDT by Yusuke Suzuki
Modified: 2016-08-09 15:18 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuke Suzuki 2016-08-09 09:16:08 PDT
We can use **, exponentiation expression now.
Looking into the ES6SampleBench, we can find Math.pow calls. This can be replaced with **.
But, strictly speaking, ** is ES2016. Not ES2015.
Comment 1 Yusuke Suzuki 2016-08-09 09:19:41 PDT
Filip, what do you think of using ** in ES6SampleBench?

BTW, I'm also working on ES6 modules (and now, slowly landing the browser integration part :)).
Once it is landed, what do you think of introducing the modules into this benchmark? (This is the part of ES6)
Is it better to add a new benchmark that leverages modules, (and **)?

Personally I think adding the new benchmark that heavily uses modules is good thing once the module support is exposed to the Web. But using the modules in the current ES6SampleBench itself is also nice.
Comment 2 Saam Barati 2016-08-09 15:18:07 PDT
I like the idea of using "**". I think modules should be their own benchmark.