v8/test/mjsunit/runtime-gen/stringreplaceglobalregexpwithstring.js

9 lines
338 B
JavaScript
Raw Normal View History

// Copyright 2014 the V8 project authors. All rights reserved.
// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
// Flags: --allow-natives-syntax --harmony
var _subject = "foo";
var _regexp = /ab/g;
var _replacement = "foo";
var arg3 = ['a'];
%StringReplaceGlobalRegExpWithString(_subject, _regexp, _replacement, arg3);