mirror of https://github.com/lukechilds/rollup.git
7 changed files with 35 additions and 13 deletions
@ -0,0 +1,3 @@ |
|||||
|
module.exports = { |
||||
|
description: 'rewrites identifiers at the head of member expressions' |
||||
|
}; |
@ -0,0 +1,5 @@ |
|||||
|
export default function getLengthOfOtherQueue () { |
||||
|
return queue.length; |
||||
|
} |
||||
|
|
||||
|
var queue = new Array( 1000 ); |
@ -0,0 +1,7 @@ |
|||||
|
import { addToQueue, getQueueItem } from './mainQueue'; |
||||
|
import getLengthOfOtherQueue from './getLengthOfOtherQueue'; |
||||
|
|
||||
|
addToQueue( 42 ); |
||||
|
|
||||
|
assert.equal( getQueueItem( 0 ), 42 ); |
||||
|
assert.equal( getLengthOfOtherQueue(), 1000 ); |
@ -0,0 +1,9 @@ |
|||||
|
var queue = []; |
||||
|
|
||||
|
export function addToQueue ( x ) { |
||||
|
queue.push( x ); |
||||
|
} |
||||
|
|
||||
|
export function getQueueItem ( i ) { |
||||
|
return queue[i]; |
||||
|
} |
Loading…
Reference in new issue