New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 789161 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue v8:5848
Owner: ----
Closed: Dec 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Math result inconsistency with exponent (math.pow vs. **)

Reported by ferenn.g...@gmail.com, Nov 28 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

Steps to reproduce the problem:
1. Open console
2. Enter Math.pow(99,99)
3. Enter 99**99
Compare results

What is the expected behavior?
The results should be the same

What went wrong?
Mathematical error:

Math.pow(99,99)
3.697296376497263e+197
99**99
3.697296376497268e+197

Did this work before? N/A 

Chrome version: 62.0.3202.94  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:
 
Labels: Needs-Triage-M62
Components: -Blink Blink>JavaScript

Comment 3 by woxxom@gmail.com, Nov 29 2017

Simple test.html attached below.
Expected: the page shows SUCCESS
Observed: the page shows FAILURE

Firefox succeeds.
Chrome fails including canary.
test.html
107 bytes View Download
Cc: divya.pa...@techmahindra.com
Labels: M-64 Triaged-ET OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on reported version 62.0.3202.94 and latest Canary 64.0.3279.0 using Windows 7, ubuntu 14.04 and Mac 10.12.6, the same is seen from M52(52.0.2716.0). On entering 99**99, uncaught exception is seen in M-50 and M-51. Hence considering the issue as Non-Regression from M-52 and marking it as Untriaged. 



I'm not sure what an "untriaged" status means, or what needs to be done to triage this, but to me it seems clear that this was simply an implementation error when "**" was added to blink as an operator. It's an accuracy/differential bug.

float vs. double is the most likely reason for this.
Components: -Blink>JavaScript Blink>JavaScript>Language
Status: Available (was: Untriaged)

Comment 7 by adamk@chromium.org, Dec 12 2017

Mergedinto: v8:5848
Status: Duplicate (was: Available)

Sign in to add a comment