Commit Graph

55 Commits

Author SHA1 Message Date
sigmund@google.com d0171bde41 frog await: allow errors after the await within try-catch blocks.
Review URL: http://codereview.chromium.org//9006053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2859 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-28 20:55:09 +00:00
sigmund@google.com 30157e4866 await in frog: partial support for try-catch blocks
Review URL: http://codereview.chromium.org//9007053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2840 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-28 00:22:25 +00:00
scheglov@google.com 63a96477cd Report errors and warnings for hiding elements, issue 572.
http://code.google.com/p/dart/issues/detail?id=572

R=zundel@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8966029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2636 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-20 14:35:40 +00:00
zundel@google.com 3440d8ffbb Updates the corelib to the new default specification for interfaces and new factory syntax
Patch by: regis
Review by: jmesserly,zundel,srdjan
See original review at: http://codereview.chromium.org/8931011/

BUG=
TEST=

Review URL: http://codereview.chromium.org//8989015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2629 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-20 12:49:40 +00:00
zundel@google.com 9d697de426 Updates dartc to recognize 'default' keyword on interface and updated factory method syntax.
Note: this does not have backwards compatibility for the old
factory syntax and updates the tests.

http://code.google.com/p/dart/issues/detail?id=417

Review URL: http://codereview.chromium.org//8948001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2597 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-19 22:34:57 +00:00
regis@google.com 5db4de9756 Implement revised factories in the VM.
Emit warnings when obsolete syntax is used.
Review URL: http://codereview.chromium.org//8921033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2394 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-13 19:35:07 +00:00
scheglov@google.com 54c5f79d42 Check that interface constructors and default class constructors are compatible.
1. Number of required parameters.
2. Names and order of named parameters.
3. [disabled] type warning for non-identical types.
4. [wait for Eric, not implemented] type parameters check.

R=zundel@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8786002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2124 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 14:58:16 +00:00
floitsch@google.com 4c7d6d7e25 Fix typo in duration doc.
R=karlklose@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8816011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2117 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 10:05:44 +00:00
mattsh@google.com 41b75c295f rpc example for directory file listing
BUG=
TEST=

Review URL: http://codereview.chromium.org//8536006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1954 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 23:24:20 +00:00
srdjan@google.com 3df86ef438 Remove isOdd/isEven from num and double interfaces.
Review URL: http://codereview.chromium.org//8598021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1760 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 19:44:52 +00:00
hausner@google.com b9cf297c15 Initializing formals can't be optional parameters
Add new error message to VM compiler.
Remove all optional initializing formals from library
and tests.
Review URL: http://codereview.chromium.org//8619008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1755 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 19:09:54 +00:00
regis@google.com 314a89e16c Update comments in core lib showing proper factory syntax.
Improve error messages reported from class finalizer.
Fix parser error reporting to be thread safe.
Reformat type error and failed assertion messages to be consistent.
Add one more new factory syntax test.
Review URL: http://codereview.chromium.org//8549033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1708 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 17:06:52 +00:00
sigmund@google.com bba5ed03e1 Make HashMap's delete key a const expression.
Review URL: http://codereview.chromium.org//8591022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1661 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-18 17:24:01 +00:00
ager@google.com 7c9b90b879 Fix Expect.listEquals error message.
R=floitsch@google.com
BUG=dart:476
TEST=

Review URL: http://codereview.chromium.org//8576008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1577 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 16:11:30 +00:00
srdjan@google.com 92f177896b Fix throwing ObjectNotClosure instead of null exception if closure is null.
Fix integer compareTo if other is a double NaN.
Fix Expect.stringEqual to accept null as arguments.
Update co19 status file.
Review URL: http://codereview.chromium.org//8528050

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1539 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-15 18:02:12 +00:00
srdjan@google.com 22ea3cf225 Fix String.trim implementation (follow spec).
Fix Queue.every, Queue.some, Queue.filter, ..
Adapt co19 status files.
Review URL: http://codereview.chromium.org//8510066

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1521 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-14 22:23:41 +00:00
floitsch@google.com 1bf944156e Fix dual-pivot sort.
BUG=dart:432
TEST=

Review URL: http://codereview.chromium.org//8510047

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1506 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-14 13:57:59 +00:00
floitsch@google.com e24dec2169 Rename StopWatch to Stopwatch. Add new Stopwatch.start() and Stopwatch.reset().
BUG=dart:418
TEST=
Review URL: http://codereview.chromium.org//8537011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1505 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-14 13:56:18 +00:00
iposva@google.com 1e203b2dc9 - Move the RuntimeOptions implementation into the shared library
code. It has no dependency on the VM.
Review URL: http://codereview.chromium.org//8505043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1381 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 01:28:51 +00:00
whesse@google.com a485e9a8cd Edit documentation for ReceivePort and Isolate.
BUG=
TEST=

Review URL: http://codereview.chromium.org//8505008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1345 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-09 11:56:29 +00:00
mattsh@google.com a93088691c convert isolates to use Future
BUG=
TEST=

Review URL: http://codereview.chromium.org//8457005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1213 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 18:40:13 +00:00
iposva@google.com f5a8aff441 - Add an Options interface to the core library. The core library
implementation and the execution environment provide the implementation
  and the values.
Review URL: http://codereview.chromium.org//8440057

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1168 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-03 21:45:02 +00:00
benl@google.com 57a533314e Review URL: http://codereview.chromium.org//8403040
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1139 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-03 10:14:19 +00:00
floitsch@google.com 161ae6b076 Fix DurationImplementation == operator.
BUG=198

Review URL: http://codereview.chromium.org//8429019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@992 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 09:11:35 +00:00
ngeoffray@google.com 5496005d1d Add optional arguments to our indexOf/lastIndexOf methods.
Review URL: http://codereview.chromium.org//8424012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@947 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 13:21:30 +00:00
ngeoffray@google.com 210fd33d0a Remove List.fromList constructor, and List.copyFrom. They are duplicates of the new range methods.
Review URL: http://codereview.chromium.org//8422005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@941 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 09:49:15 +00:00
srdjan@google.com 8d69118676 More strict non-equal cleanups in library code
Review URL: http://codereview.chromium.org//8413018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@892 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-28 15:21:42 +00:00
srdjan@google.com 959f4b519d Use strict equality when comparing with null, especially when null is a default value.
Review URL: http://codereview.chromium.org//8400038

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@859 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-27 22:11:16 +00:00
vsm@google.com 91601e09fc Fix for events fired on different isolates.
Ensures that a DOM callback will be fired on the isolate that it
originated on.

BUG=5151491
TEST=https://chromereviews.googleplex.com/3624031/

Review URL: http://codereview.chromium.org//8370031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@798 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-27 03:02:43 +00:00
benl@google.com e68ae4243d Fix tests broken by proxy changes.
TBR=ager
Review URL: http://codereview.chromium.org//8351032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@689 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 12:07:26 +00:00
benl@google.com a64fbe01a8 Rename various Proxy classes. Provide a Proxy interface.
Review URL: http://codereview.chromium.org//8383034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@684 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 11:09:54 +00:00
mattsh@google.com a6150b1048 initial exceptionHandled in FutureImplementation.dart
BUG=
TEST=

Review URL: http://codereview.chromium.org//8387015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@673 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 01:13:20 +00:00
ngeoffray@google.com 70c01beb9b Clean up (most) uses of Array. Still more to come in the VM corelib code base.
Review URL: http://codereview.chromium.org//8321024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@507 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 10:02:59 +00:00
mattsh@google.com adf76c310c future and completer
BUG=
TEST=

Review URL: http://codereview.chromium.org//8271014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@459 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 22:00:13 +00:00
ngeoffray@google.com 52aa068f73 Implement List.insertRange.
Review URL: http://codereview.chromium.org//8271029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@439 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 13:44:18 +00:00
benl@google.com c0a59669cf Do away with the PromiseQueue.
Instead of queuing messages with promises in them until the promises
are ready, send immediately. This is done by sending a port down which
the receiver sends a port which can be used to signal completion of
the outgoing promise.
Review URL: https://chromereviews.googleplex.com/3573013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@427 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 11:18:12 +00:00
ngeoffray@google.com b69b4200c8 Implement removeRange, and update some documentation on the list interface.
Review URL: http://codereview.chromium.org//8273004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@400 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 15:54:48 +00:00
ngeoffray@google.com 66e4a503ab Fix typo.
BUG=dart:89
Review URL: http://codereview.chromium.org//8277001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@398 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 14:49:58 +00:00
ngeoffray@google.com edcae54a2c Implement setRange on DartC and the VM.
Review URL: https://chromereviews.googleplex.com/3574018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@394 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 12:58:49 +00:00
floitsch@google.com e143f6c81f Improve doc for isolates.
Also make Isolate.main abstract.

Review URL: https://chromereviews.googleplex.com/3567015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@230 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 15:46:33 +00:00
antonm@google.com 3d26b7d9f0 Introduce Maps.
This class helps to implement Map interface provided you have basic operations
like [], []=, remove and getKeys.

Review URL: https://chromereviews.googleplex.com/3549015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@216 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 13:36:51 +00:00
ngeoffray@google.com 7f7ee4a02b Address feedback and add more comments to the new range methods.
Review URL: https://chromereviews.googleplex.com/3568013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@214 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 13:12:55 +00:00
ngeoffray@google.com 8b8b4844fa Add default arguments for regexp flags.
Review URL: https://chromereviews.googleplex.com/3558016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@213 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 12:47:56 +00:00
floitsch@google.com 312a19af39 Add INFINITY, NAN and NEGATIVE_INFINITY to double.
Review URL: https://chromereviews.googleplex.com/3572013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@212 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 11:49:02 +00:00
kasperl@google.com 1a3e9c39b1 Make replyTo argument optional in SendPort.send.
R=benl@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3561014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@207 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 10:44:50 +00:00
ngeoffray@google.com c2b5e488da Remove substringToEnd.
Review URL: https://chromereviews.googleplex.com/3561013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@201 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 08:41:38 +00:00
ngeoffray@google.com cb3a9f6641 Add range methods to List. Throw not implemented for now.
Review URL: https://chromereviews.googleplex.com/3573012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@198 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 07:56:42 +00:00
floitsch@google.com 63dd99d5e6 Remove TimeZone comment.
R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3547014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@129 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:19:02 +00:00
floitsch@google.com 410583d73d Get rid of duration in TimeZone class.
Review URL: https://chromereviews.googleplex.com/3538012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@124 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:35:56 +00:00
floitsch@google.com 885419a1bb Add missing files from last commit (121).
TBR=ngeoffray.
R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3534016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@122 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:26:48 +00:00