[Utils] Fix Long conversion (allow hex string value) 33/167433/2
authorJakub Skowron <j.skowron@samsung.com>
Wed, 17 Jan 2018 13:27:09 +0000 (14:27 +0100)
committerJakub Skowron <j.skowron@samsung.com>
Fri, 26 Jan 2018 08:25:49 +0000 (08:25 +0000)
commit1129a8f18c453f8be2765f034314bb04bb6fa66a
tree54b403fd44f0a2b657cb311e094012f352c20dfc
parentf745269c0e4e1efa1f78ac9579c4fe33a5b0c74c
[Utils] Fix Long conversion (allow hex string value)

Until now string "0x15" would be converted 0. This change affects
all numeric conversions which use _toLong.

According to https://www.w3.org/TR/WebIDL-1/#es-long value
should be initialized by ToNumber, which is defined in
https://tc39.github.io/ecma262/#sec-tonumber-applied-to-the-string-type
and allows value to be in form of HexIntegerLiteral.

Change-Id: Ib719ce8fd5beccc5947b761dc905c49ac0469490
src/utils/utils_api.js