<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>126618</bug_id>
          
          <creation_ts>2014-01-07 23:29:12 -0800</creation_ts>
          <short_desc>`DecimalIntegerLiteral` can never be `0` directly followed by `8` or `9`</short_desc>
          <delta_ts>2014-08-07 10:09:06 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>135704</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathias Bynens">mathias</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>barraclough</cc>
    
    <cc>dbates</cc>
    
    <cc>ggaren</cc>
    
    <cc>mathias</cc>
    
    <cc>oliver</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>965346</commentid>
    <comment_count>0</comment_count>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2014-01-07 23:29:12 -0800</bug_when>
    <thetext>The following JavaScript program should throw an error:

    08

As per the spec[1], `DecimalIntegerLiteral` can never be `0` directly followed by another decimal digit, although Chrome/Opera, PrestOpera, and Firefox do support it.

Note that https://people.mozilla.org/~jorendorff/es6-draft.html#sec-additional-syntax-numeric-literals does not apply here because `8` is not an `OctalDigit`.

[1] https://people.mozilla.org/~jorendorff/es6-draft.html#sec-literals-numeric-literals</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1027517</commentid>
    <comment_count>1</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2014-08-07 10:09:06 -0700</bug_when>
    <thetext>Whoops, i&apos;m a muppet and didn&apos;t see this.  Filed another bug that&apos;s on the real strict mode restrictions being incorrectly applied.  But that also has radar linkage.

*** This bug has been marked as a duplicate of bug 135704 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>