Message from discussion
Issue 2264 in v8: Array.prototype.sort does not call ToString() for identical elements
Received: by 10.236.200.131 with SMTP id z3mr5662075yhn.8.1343638561846;
Mon, 30 Jul 2012 01:56:01 -0700 (PDT)
X-BeenThere: v8-dev@googlegroups.com
Received: by 10.236.113.178 with SMTP id a38ls8751885yhh.9.gmail; Mon, 30 Jul
2012 01:56:01 -0700 (PDT)
Received: by 10.236.83.111 with SMTP id p75mr5809182yhe.5.1343638561123;
Mon, 30 Jul 2012 01:56:01 -0700 (PDT)
Received: by 10.236.83.111 with SMTP id p75mr5809180yhe.5.1343638561113;
Mon, 30 Jul 2012 01:56:01 -0700 (PDT)
Return-Path: <3IEwWUBAKBpc3F45J9K5-EFI5GCP7FF7C5.3FDMZ-45M7FF7C57IFLGJ....@codesite.bounces.google.com>
Received: from mail-gh0-f204.google.com (mail-gh0-f204.google.com [209.85.160.204])
by gmr-mx.google.com with ESMTPS id y43si2581707yhi.2.2012.07.30.01.56.01
(version=TLSv1/SSLv3 cipher=OTHER);
Mon, 30 Jul 2012 01:56:01 -0700 (PDT)
Received-SPF: pass (google.com: domain of 3IEwWUBAKBpc3F45J9K5-EFI5GCP7FF7C5.3FDMZ-45M7FF7C57IFLGJ....@codesite.bounces.google.com designates 209.85.160.204 as permitted sender) client-ip=209.85.160.204;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of 3IEwWUBAKBpc3F45J9K5-EFI5GCP7FF7C5.3FDMZ-45M7FF7C57IFLGJ....@codesite.bounces.google.com designates 209.85.160.204 as permitted sender) smtp.mail=3IEwWUBAKBpc3F45J9K5-EFI5GCP7FF7C5.3FDMZ-45M7FF7C57IFLGJ....@codesite.bounces.google.com; dkim=pass header...@google.com
Received: by ghrr19 with SMTP id r19so1731833ghr.3
for <v8-dev@googlegroups.com>; Mon, 30 Jul 2012 01:56:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=google.com; s=20120113;
h=mime-version:reply-to:x-generated-by:x-googlecode-project
:x-googlecode-issue-id:references:in-reply-to:message-id:date
:subject:from:to:content-type;
bh=6BjW+XvkUzlhUBPUDwv4GQFO2OQQ540pmzjNRxz0tu0=;
b=UeSAZDm/C/+EzXkMlbMNOVkjTcVaA7pRLyVHSukviD9nucpEn7E36C2lfANRlO3Nqq
V5KGDua9MWzYJluQZ+cBPwB00hj+2KvL/19hD0wy5HvrQZXxSMOd+x8wxZvHHb/UkBIq
AVbjTFC0jJNjKKR9hNsYe67z3BsTrIKAdZ8XRfrrXAyM/Qcj7E2HKKiP+t8ZcjEYHiHE
DB8b2O0vbMOskef8J+cWyWZyqrxFnYTZfRlLz795V/+oIQQTm6nJ/kovMEd5p27Sua5D
8qTv7RoBdhie3lCKWvwj3zd15lVKMjpeurphE87MR28IY7JWUoZaKxC/FabVMnNREN+6
uLBg==
MIME-Version: 1.0
Received: by 10.224.182.77 with SMTP id cb13mr7552213qab.5.1343638560995; Mon,
30 Jul 2012 01:56:00 -0700 (PDT)
Reply-To: codesite-nore...@google.com
X-Generated-By: Google Code
X-GoogleCode-Project: v8
X-GoogleCode-Issue-Id: 2264
References: <2-11690816309429728379-6806190294624666600-codesite-noreply=google....@googlecode.com>
<0-11690816309429728379-6806190294624666600-codesite-noreply=google....@googlecode.com>
In-Reply-To: <2-11690816309429728379-6806190294624666600-codesite-noreply=google....@googlecode.com>
Message-ID: <3-11690816309429728379-6806190294624666600-codesite-noreply=google....@googlecode.com>
Date: Mon, 30 Jul 2012 08:56:00 +0000
Subject: Re: Issue 2264 in v8: Array.prototype.sort does not call ToString()
for identical elements
From: codesite-nore...@google.com
To: v8-dev@googlegroups.com
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes
Comment #3 on issue 2264 by erik.corry: Array.prototype.sort does not call
ToString() for identical elements
http://code.google.com/p/v8/issues/detail?id=2264
The standard is intentionally vague about how many times SortCompare is
called. Is this result not consistent with SortCompare not being called at
all?
"Perform an implementation-dependent sequence of calls to the [[Get]] ,
[[Put]], and [[Delete]] internal methods of obj and to SortCompare"
In this case the implementation-dependent sequencce does not include any
calls to SortCompare.