10040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org// Copyright 2011 the V8 project authors. All rights reserved.
20040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org// Redistribution and use in source and binary forms, with or without
30040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org// modification, are permitted provided that the following conditions are
40040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org// met:
50040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org//
60040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org//     * Redistributions of source code must retain the above copyright
70040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org//       notice, this list of conditions and the following disclaimer.
80040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org//     * Redistributions in binary form must reproduce the above
90040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org//       copyright notice, this list of conditions and the following
100040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org//       disclaimer in the documentation and/or other materials provided
110040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org//       with the distribution.
120040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org//     * Neither the name of Google Inc. nor the names of its
130040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org//       contributors may be used to endorse or promote products derived
140040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org//       from this software without specific prior written permission.
150040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org//
160040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
170040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
180040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
190040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
200040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
210040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
220040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
230040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
240040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
250040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
260040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
270040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org
280040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org// Strict mode with call to RegExp containing octal escape:
290040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org
300040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.orgfunction foo() {
310040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org  "use strict";
320040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org  var re = RegExp("Hello\\040World");
330040ca93e7ca9c0968f7bc27088ce045cb32c402lrn@chromium.org  return re;
34f9841897146bc10dbb3c45f0632bb79254602c75machenbach@chromium.org}
35