| Index: test/intl/number-format/parse-currency.js
|
| diff --git a/test/mjsunit/compiler/osr-two.js b/test/intl/number-format/parse-currency.js
|
| similarity index 86%
|
| copy from test/mjsunit/compiler/osr-two.js
|
| copy to test/intl/number-format/parse-currency.js
|
| index 8ac4c2cc128180ea6843c7c07591b1365f3b37f7..892eca96941d74d2b8ea351ab49b99c188d46357 100644
|
| --- a/test/mjsunit/compiler/osr-two.js
|
| +++ b/test/intl/number-format/parse-currency.js
|
| @@ -24,21 +24,11 @@
|
| // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| +// limitations under the License.
|
|
|
| -// Flags: --use-osr
|
| +// Currency parsing is not yet supported. We need ICU49 or higher to get
|
| +// it working.
|
|
|
| -function f(x) {
|
| - var sum = 0;
|
| - var outer = 100;
|
| - while (outer > 0) {
|
| - var inner = 100000;
|
| - while (inner > 0) {
|
| - sum += x;
|
| - inner--;
|
| - }
|
| - outer--;
|
| - }
|
| - return sum;
|
| -}
|
| +var nf = new Intl.NumberFormat(['en'], {style: 'currency', currency: 'USD'});
|
|
|
| -assertEquals(50000000, f(5));
|
| +assertEquals(undefined, nf.v8Parse('USD 123.43'));
|
|
|