193720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// Copyright 2014 the V8 project authors. All rights reserved. 293720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// Redistribution and use in source and binary forms, with or without 393720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// modification, are permitted provided that the following conditions are 493720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// met: 593720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// 693720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// * Redistributions of source code must retain the above copyright 793720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// notice, this list of conditions and the following disclaimer. 893720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// * Redistributions in binary form must reproduce the above 993720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// copyright notice, this list of conditions and the following 1093720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// disclaimer in the documentation and/or other materials provided 1193720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// with the distribution. 1293720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// * Neither the name of Google Inc. nor the names of its 1393720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// contributors may be used to endorse or promote products derived 1493720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// from this software without specific prior written permission. 1593720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// 1693720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1793720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1893720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1993720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2093720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2193720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2293720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2393720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2493720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2593720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2693720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2793720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org 2893720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.orgvar s = "('')x\nx\uF670"; 2993720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.org 3093720aaa16a789ba13d52a265a479b26f4885e2emachenbach@chromium.orgassertEquals(s.match(/\((').*\1\)/i), ["('')", "'"]); 31