Prepack: Calling .toString() on an abstract number or string should be supported

Created on 16 Jun 2017  路  2Comments  路  Source: facebook/prepack

As it's a safe operation, making this test case work:

(function() {
  let x = global.__abstract ? __abstract("number", 42) : 42;
  let s = x.toString();
  let t = s.toString();
  global.inspect = function() {
    return t;
  }
})();

This should address #613.

enhancement help wanted interpreter abstract

Most helpful comment

@wdhorton, are you still working on it? If not, I would like to take over. Thanks.

All 2 comments

I can tackle this one

@wdhorton, are you still working on it? If not, I would like to take over. Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cblappert picture cblappert  路  7Comments

matheusml picture matheusml  路  8Comments

maxime1992 picture maxime1992  路  5Comments

phpnode picture phpnode  路  3Comments

skyne98 picture skyne98  路  7Comments