New issue
Advanced search Search tips

Issue 662418 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner: ----
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug

Blocking:
issue 661510



Sign in to add a comment

Difference between default and ignition: valueOf

Project Member Reported by machenb...@chromium.org, Nov 4 2016

Issue description

# Minimized program:
var v = {
  valueOf: function() {
    print(w++);
  },
  toString: null
};
var w = {
  valueOf: function() {
    print("w");
  }
};
var x = { [v]: 'B' };


# Compared default with ignition_staging

# Flags of default:
--abort_on_stack_overflow --expose-gc --allow-natives-syntax --invoke-weak-callbacks --omit-quit --gc-interval=225 --random-seed -607187433
# Flags of ignition_staging:
--abort_on_stack_overflow --expose-gc --allow-natives-syntax --invoke-weak-callbacks --omit-quit --gc-interval=225 --random-seed -607187433 --ignition-staging

Difference:
Different total output lines: 2 vs. 3

### Start of configuration default:
w
NaN

### End of configuration default

### Start of configuration ignition_staging:
w
w
NaN

### End of configuration ignition_staging

 
Status: Started (was: Untriaged)
I have a fix in progress. Got to agree with Michi - correctness fuzzer FTW!
# Guess this is the same with toString?

var v = {
  toString: function() {
    print(w++);
  }
};
var w = {
  toString: function() {
    print("Meh");
  }
};
var v = {[v]: 0};
Yes this looks like the same underlying bug.
# Another one:
__v_8 = function() {
  print(__v_8.caller);
}
__v_7 = {};
__v_7.valueOf = __v_8;
Number(__v_7);


# Compared fullcode with ignition_turbo_opt

# Flags of fullcode:
--abort_on_stack_overflow --expose-gc --allow-natives-syntax --invoke-weak-callbacks --omit-quit --gc-interval=196 --random-seed 38473969 --nocrankshaft --turbo-filter=~
# Flags of ignition_turbo_opt:
--abort_on_stack_overflow --expose-gc --allow-natives-syntax --invoke-weak-callbacks --omit-quit --gc-interval=196 --random-seed 38473969 --ignition-staging --turbo --always-opt

Difference:
- function Number() { [native code] }
+ null

### Start of configuration fullcode:
function Number() { [native code] }

### End of configuration fullcode

### Start of configuration ignition_turbo_opt:
null

### End of configuration ignition_turbo_opt

Status: Fixed (was: Started)
This should be fixed now.
Labels: -Restrict-View-Google v8-foozzie-failure

Sign in to add a comment