Bug 160693
| Summary: | [ES7] Use exponentiation expression in ES6SampleBench | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Yusuke Suzuki <ysuzuki> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | fpizlo, saam |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Yusuke Suzuki
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Yusuke Suzuki
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.
Saam Barati
I like the idea of using "**". I think modules should be their own benchmark.