Bug 160693

Summary: [ES7] Use exponentiation expression in ES6SampleBench
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: fpizlo, saam
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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.